package org.dromara.farmer.domain.bo;

import org.dromara.farmer.domain.InsuranceFarmer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 农户查询业务对象 insurance_farmer
 *
 * @author Lion Li
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InsuranceFarmer.class, reverseConvertGenerate = false)
public class InsuranceFarmerBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 农户姓名
     */
    @NotBlank(message = "农户姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String farmerName;

    /**
     * 农户身份证号
     */
    @NotBlank(message = "农户身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String farmerIdNumber;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPhone;

    /**
     * 农户地址
     */
    @NotBlank(message = "农户地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 参保类型
     */
    @NotBlank(message = "参保类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String insuranceType;

    /**
     * 参保金额
     */
    @NotNull(message = "参保金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insuredAmount;

    /**
     * 参保日期
     */
    @NotNull(message = "参保日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date insuredDate;

    /**
     * 保单号
     */
    @NotBlank(message = "保单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String policyNumber;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginDate;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
